<?php

include_once (__DIR__ . '/../dao/userDao.php'); 

class UserServices {
 
    public function __construct() {
    }

    public function login($login, $pwd) {
        $connection = new DBConnection();
        $connection->connect();
        $dao = new UserDao($connection);
        $r = $dao->login($login, $pwd);
        $connection->close();
        return $r;
    } 
}
